package com.utility.constant;

/**
 *  正则表达式 常量类
 * @author: hw
 * @date: 2020/12/29 17:33
 */
public class RegularConstant {

    /**
     * 手机正则表达式
     */
    public static final String phone = "^((13[0-9])|(14[0,1,4-9])|(15[0-3,5-9])|(16[2,5,6,7])|(17[0-8])|(18[0-9])|(19[0-3,5-9]))\\d{8}$";


    /**
     * 邮箱正则表达式
     */
    public static final String mail = "^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$";

}
